﻿using ETA.Entity;
using FluentNHibernate.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ETA.EntityMappings
{
    public class RolerMap : ClassMap<Roler>
    {
        public RolerMap()
        {
            Id(x => x.RolerId);
            Map(x => x.RolerName);
            Map(x => x.Url);
            Map(x => x.RoleDes);
            Map(x => x.IsDelete);
            Map(x => x.ModifyDate);
            Map(x => x.CreateDate);
            //HasManyToMany<User>(x => x.Users)
            //  .LazyLoad()
            //  .Table("RolerRealtion")
            //  .ChildKeyColumn("UserId")
            //  .ParentKeyColumn("RolerId");
        }
    }
}
